package com.hdy.redislikerankinglist.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Schema(title = "回应")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RestResponse <T>implements Serializable {
    private static final long serialVersionUID = -5336210741362413873L;
    @Schema(title = "响应接口表示符")
    private String code;
    @Schema(title = "接口调用是否成功")
    private boolean isSuccess;
    @Schema(title = "响应结果说明")
    private String message;
    @Schema(title = "响应数据")
    private T data;
}
